package com.example.springstack.springsecurity.service;

import com.example.springstack.springsecurity.entity.User;
import org.springframework.security.core.GrantedAuthority;

import java.util.List;

/**
 * @author Qiangfanghao
 */
public interface UserService {

    /**
     * 新增用户
     */
    void insertUser(User user);

    /**
     * 获取用户权限
     * @param username
     * @return
     */
    List<GrantedAuthority> getUserAuthorities(String username);
}
